package com.yangya.orders.feign;
import com.yangya.orders.model.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user" )
public interface UserFeignClient {

    @GetMapping("/user/getUser/{id}")
    public UserVo getUser(@PathVariable("id") Long id);

}
